<template>
  <div class="weekend">
    <div class="weekend-header">周末去哪儿</div>
    <div class="item" v-for="item in weekendList" :key="item.id">
      <img :src="item.imgUrl" alt class="item-img" />
      <div class="item-info">
        <p class="item-title">{{item.title}}</p>
        <p class="item-desc">{{item.desc}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeWeekend",
  data() {
    return {};
  },
  props: {
    weekendList: Array
  }
};
</script>

<style lang="stylus" scoped>
@import '~@/assets/style/mixins'

.weekend
  width: 100%
  .weekend-header
    width: 100%
    height: 0.94rem
    font-size: 0.32rem
    line-height: 0.94rem
    padding-left: 0.2rem
    background: #f5f5f5
  .item
    .item-img
      width: 100%
    .item-info
      padding: 0.2rem
      font-size: 0.28rem
      .item-desc
        padding-right: 1.4rem
        font-size: 0.24rem
        updateText()
</style>